<nz-alert nzType="warning" nzMessage="修正件吨后请重新确认检算状态"></nz-alert>
<nz-page-header class="site-page-header mt-[10px]" nzTitle="作业前后件吨"></nz-page-header>
<div nz-row [nzGutter]="24" nzJustify="start" class="mt10">
	<div nz-col [nzSpan]="10">
		<nz-form-item>
			<nz-form-label [nzSm]="10" [nzXs]="24">作业前件</nz-form-label>
			<nz-form-control [nzSm]="14" [nzXs]="24">
				{{ record?.oriPiece }}
			</nz-form-control>
		</nz-form-item>
	</div>
	<div nz-col [nzSpan]="12">
		<nz-form-item>
			<nz-form-label [nzSm]="10" [nzXs]="24">作业前吨</nz-form-label>
			<nz-form-control [nzSm]="14" [nzXs]="24">
				{{ record?.oriTon }}
			</nz-form-control>
		</nz-form-item>
	</div>
	<div nz-col [nzSpan]="10">
		<nz-form-item>
			<nz-form-label [nzSm]="10" [nzXs]="24">作业后件</nz-form-label>
			<nz-form-control [nzSm]="14" [nzXs]="24">
				{{ record?.toPiece }}
			</nz-form-control>
		</nz-form-item>
	</div>
	<div nz-col [nzSpan]="12">
		<nz-form-item>
			<nz-form-label [nzSm]="10" [nzXs]="24">作业后吨</nz-form-label>
			<nz-form-control [nzSm]="14" [nzXs]="24">
				{{ record?.toTon }}
			</nz-form-control>
		</nz-form-item>
	</div>
</div>
<form nz-form [formGroup]="dataForm" class="pb20">
	<div nz-row [nzGutter]="24" nzJustify="start">
		<div nz-col [nzSpan]="10">
			<nz-form-item>
				<nz-form-label [nzSm]="10" [nzXs]="24" nzFor="allPiece" nzRequired>修正作业前件数</nz-form-label>
				<nz-form-control [nzSm]="14" [nzXs]="24">
					<nz-input-number class="w-full" formControlName="checkOriPiece" [nzMin]="0" [nzMax]="99999999" [nzStep]="1"></nz-input-number>
				</nz-form-control>
			</nz-form-item>
		</div>
		<div nz-col [nzSpan]="12">
			<nz-form-item>
				<nz-form-label [nzSm]="10" [nzXs]="24" nzFor="allTon" nzRequired>修正作业前吨数</nz-form-label>
				<nz-form-control [nzSm]="14" [nzXs]="24">
					<nz-input-number class="w-full" formControlName="checkOriTon" [nzMin]="0" [nzStep]="0.0001"></nz-input-number>
				</nz-form-control>
			</nz-form-item>
		</div>
	</div>
	<div nz-row [nzGutter]="24" nzJustify="start">
		<div nz-col [nzSpan]="10">
			<nz-form-item>
				<nz-form-label [nzSm]="10" [nzXs]="24" nzFor="allPiece" nzRequired>修正作业后件数</nz-form-label>
				<nz-form-control [nzSm]="14" [nzXs]="24">
					<nz-input-number class="w-full" formControlName="checkToPiece" [nzMin]="0" [nzMax]="99999999" [nzStep]="1"></nz-input-number>
				</nz-form-control>
			</nz-form-item>
		</div>
		<div nz-col [nzSpan]="12">
			<nz-form-item>
				<nz-form-label [nzSm]="10" [nzXs]="24" nzFor="allTon" nzRequired>修正作业后吨数</nz-form-label>
				<nz-form-control [nzSm]="14" [nzXs]="24">
					<nz-input-number class="w-full" formControlName="checkToTon" [nzMin]="0" [nzStep]="0.0001"></nz-input-number>
				</nz-form-control>
			</nz-form-item>
		</div>
	</div>

	<div nz-row [nzGutter]="24" nzJustify="start">
		<div nz-col [nzSpan]="24">
			<nz-form-item>
				<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired>修正类型</nz-form-label>
				<nz-form-control [nzSm]="18" [nzXs]="24">
					<nz-select formControlName="checkType" nzShowSearch [nzAllowClear]="true">
						<nz-option *ngFor="let item of checkTypeList" [nzValue]="item.dictKey" [nzLabel]="item.dictValue"></nz-option>
					</nz-select>
				</nz-form-control>
			</nz-form-item>
		</div>
	</div>

	<div nz-row [nzGutter]="24" nzJustify="start">
		<div nz-col [nzSpan]="24">
			<nz-form-item>
				<nz-form-label [nzSm]="4" [nzXs]="24" nzRequired>修正原因</nz-form-label>
				<nz-form-control [nzSm]="18" [nzXs]="24">
					<textarea formControlName="checkReason" rows="4" nz-input></textarea>
				</nz-form-control>
			</nz-form-item>
		</div>
	</div>
</form>
<div class="modal-footer">
	<button nz-button nzType="default" (click)="close()">关闭</button>
	<button nz-button class="cfff" style="background: #2cb143" (click)="checkChange()">修正（更改库存）</button>
</div>
